<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
  <title>tango.io.stream.EndianStream</title>
  <link href="./css/style.css" rel="stylesheet" type="text/css"/>
  <!-- <link href="./img/icon.png" rel="icon" type="image/png"/> -->
  <script type="text/javascript" src="./js/jquery.js"></script>
  <script type="text/javascript" src="./js/modules.js"></script>
  <script type="text/javascript" src="./js/quicksearch.js"></script>
  <script type="text/javascript" src="./js/navigation.js"></script>
  <!--<script type="text/javascript" src="./js/jquery.treeview.js"></script>-->
  <script type="text/javascript">
    var g_moduleFQN = "tango.io.stream.EndianStream";
  </script>
  
</head>
<body>
<div id="content">
  <h1><a href="./htmlsrc/tango.io.stream.EndianStream.html" class="symbol">tango.io.stream.EndianStream</a></h1>
  
<p class="sec_header">License:</p>BSD style: see <a href="http://www.dsource.org/projects/tango/wiki/LibraryLicense">license.txt</a>
<p class="sec_header">Version:</p>Initial release: Nov 2007
<p class="sec_header">Author:</p>Kris
<p class="bl"/>
        Streams for swapping endian-order. The stream is treated as a set
        of same-sized elements. Note that partial elements are not mutated
<dl>
<dt class="decl">class <a class="symbol _class" name="EndianInput" href="./htmlsrc/tango.io.stream.EndianStream.html#L29" kind="class" beg="29" end="88">EndianInput</a><span class="tparams">(T)</span> : InputFilter; <a title="Permalink to this symbol" href="#EndianInput" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/tango.io.stream.EndianStream.html#L29">#</a></dt>
<dd class="ddef">
<div class="summary">Type T is the element type</div>
<dl>
<dt class="decl"><a class="symbol _ctor" name="EndianInput.this" href="./htmlsrc/tango.io.stream.EndianStream.html#L41" kind="ctor" beg="41" end="44">this</a><span class="params">(InputStream <em>stream</em>)</span>; <a title="Permalink to this symbol" href="#EndianInput.this" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/tango.io.stream.EndianStream.html#L41">#</a></dt>
<dd class="ddef">
<div class="summary"></div></dd>
<dt class="decl">IBuffer <a class="symbol _function" name="EndianInput.buffer" href="./htmlsrc/tango.io.stream.EndianStream.html#L52" kind="function" beg="52" end="55">buffer</a><span class="params">()</span>; <span class="attrs">[<span class="stc">final</span>]</span> <a title="Permalink to this symbol" href="#EndianInput.buffer" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/tango.io.stream.EndianStream.html#L52">#</a></dt>
<dd class="ddef">
<div class="summary">Buffered interface</div></dd>
<dt class="decl">uint <a class="symbol _function" name="EndianInput.read" href="./htmlsrc/tango.io.stream.EndianStream.html#L69" kind="function" beg="69" end="87">read</a><span class="params">(void[] <em>dst</em>)</span>; <span class="attrs">[<span class="stc">override</span>, <span class="stc">final</span>]</span> <a title="Permalink to this symbol" href="#EndianInput.read" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/tango.io.stream.EndianStream.html#L69">#</a></dt>
<dd class="ddef">
<div class="summary">Read from conduit into a target array. The provided dst 
                will be populated with content from the conduit.</div>
Returns the number of bytes read, which may be less than
                requested in dst (or IOStream.Eof for end-of-flow). Note
                that a trailing partial element will be placed into dst,
                but the returned length will effectively ignore it</dd></dl></dd>
<dt class="decl">class <a class="symbol _class" name="EndianOutput" href="./htmlsrc/tango.io.stream.EndianStream.html#L98" kind="class" beg="98" end="158">EndianOutput</a><span class="tparams">(T)</span> : OutputFilter; <a title="Permalink to this symbol" href="#EndianOutput" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/tango.io.stream.EndianStream.html#L98">#</a></dt>
<dd class="ddef">
<div class="summary">Type T is the element type</div>
<dl>
<dt class="decl"><a class="symbol _ctor" name="EndianOutput.this" href="./htmlsrc/tango.io.stream.EndianStream.html#L109" kind="ctor" beg="109" end="112">this</a><span class="params">(OutputStream <em>stream</em>)</span>; <a title="Permalink to this symbol" href="#EndianOutput.this" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/tango.io.stream.EndianStream.html#L109">#</a></dt>
<dd class="ddef">
<div class="summary"></div></dd>
<dt class="decl">uint <a class="symbol _function" name="EndianOutput.write" href="./htmlsrc/tango.io.stream.EndianStream.html#L125" kind="function" beg="125" end="157">write</a><span class="params">(void[] <em>src</em>)</span>; <span class="attrs">[<span class="stc">override</span>, <span class="stc">final</span>]</span> <a title="Permalink to this symbol" href="#EndianOutput.write" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/tango.io.stream.EndianStream.html#L125">#</a></dt>
<dd class="ddef">
<div class="summary">Write to output stream from a source array. The provided 
                src content will be consumed and left intact.</div>
Returns the number of bytes written from src, which may
                be less than the quantity provided. Note that any partial 
                elements will not be consumed</dd></dl></dd></dl>
</div>
<div id="footer">
  <p>Copyright (c) 2007 Kris Bell. All rights reserved</p>
  <p>Page generated by <a href="http://code.google.com/p/dil">dil</a> on Fri Dec 26 04:04:01 2008. Rendered by <a href="http://code.google.com/p/dil/wiki/Kandil">kandil</a>.</p>
</div>
</body>
</html>